package com.yuwei.database

import androidx.room.*
import com.yuwei.database.dao.*
import com.yuwei.database.entity.*

/**
 * 数据库实体
 */

@Database(
    entities = [VideoParamEntity::class,GoodsEntityItem::class,OrderEntity::class,AddressEntity::class,FavVideoEntity::class],//代表数据库中有哪些表实体
    version = 1,//数据库版本号
    exportSchema = false,//是否支持数据库协议导出（不让外部程序访问） 不允许被导出
) abstract class AppDataBase:RoomDatabase(){
    abstract fun getVideoDao(): VideoDao
    abstract fun getGoodsDao(): GoodsDao
    abstract fun getOrderDao(): OrderDao
    abstract fun getAddressDao(): AddressDao
    abstract fun getFavVideoDao(): FavVideoDao
}